"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GameHttpHelper = void 0;
const HttpUtil_1 = require("../../engine/utils/HttpUtil");
const request = require('request');
class GameHttpHelper {
    static sendHttpLog(params) {
        let url = "http://127.0.0.1:9000";
        HttpUtil_1.HttpUtil.request_by_body(url, params);
    }
    static get_online_num(url) {
        return new Promise((resolve, reject) => {
            HttpUtil_1.HttpUtil.request_by_body(url, {}, (response) => {
                if (response["status"] == 200) {
                    resolve(response["data"]);
                }
            });
        });
    }
}
exports.GameHttpHelper = GameHttpHelper;
